package org.jeecg.api.feign;

import org.jeecg.common.api.vo.Result;
import org.jeecg.common.constant.CommonConstant;
import org.jeecg.config.feign.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;


//如果不需要token鉴权，接口上加@RequestHeader(CommonConstant.FEIGN_NON_AUTH)
@FeignClient(name = "remoteDriverService", url = "${wlhyext.feign-domain:http://127.0.0.1:8080/wlhy168}", configuration = {FeignConfig.class})
public interface RemoteDriverService {

    @GetMapping(value = "/hydriver/hyDriver/list")
    Result<?> queryPageList(@RequestParam("pageNo") Integer pageNo, @RequestParam("pageSize") Integer pageSize);

}
